


function saveContent(table, field, content_id, content_id2, redirect) {
    
     //alert($("#[html_property:content_id]").html());

    
    $(activeElement).removeClass('snapol_active_element');
     
    
    //html = $('#editor').html();
    content = $("#"+content_id).html();
    id2 = $("#"+content_id2).val();
    
    //alert(id2);
    
    
//    id2 = $('#snapol_id2').attr('value');   

    //table = "page";
    //field = "text";
    
    //table = "page";
    //field = "text";
    
    //alert(id2)
    
    //prompt("", "[php_script]");

    $.post("/snapol/js_php/saveContent.php", { table: table, field: field, id2: id2, content: content }, function(data){
     
        if (!data == "") {
            alert("Error: " + data);
        }    
        
            
            if (!redirect == "")
                window.location = redirect;   

   });

  
}




function saveHtmlValue(id2, html) {
    
    
     $.post("/snapol/js_php/saveHtmlValue.php", { id2: id2, html: html }, function(data){
     
            //alert("Data Loaded: " + data);

   });

    
    
}

